package com.cupk.service;

import com.cupk.pojo.User;

public interface UserService {

    public String generateCode();

    public void sendEmail(String username, String email, String code);

    public User getUserByAccount(String account);

    public String generateToken(User user);

    void register(User user);

    void updateEmail(String userId,String email);

    void updatePassword(String userId, String newPassword);

    User getUserByEmail(String email);

    public User getUserByName(String name);
}
